package com.zj.whichone.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zj.whichone.bean.User;

import cn.hn.java.summer.db.BaseDao;
import cn.hn.java.summer.db.multiple.DataSource1;

@Controller
@RequestMapping("/test")
public class TestController extends BaseDao<DataSource1>{
	@RequestMapping("/user")
	public List<User> getUser(){
		System.out.println("############come in test/user");
		List<User> list = this.list("getUsersByRoot", User.class);
		System.out.println("list size: "+list.size());
		return list;
	}

}
